﻿@model Bibilioteca.Models.Editorial

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>
@if (Model.Id != 0)
{  
    <fieldset>
        <legend>Editorial</legend>

        <div class="display-label">
             @Html.DisplayNameFor(model => model.Nombre)
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.Nombre)
        </div>
    </fieldset>
    <p>
        @Html.ActionLink("Edit", "Edit", new { id=Model.Id }) | 
        @Html.ActionLink("Back to List", "Index")
    </p>
}
else
{ 
    <p>Este usuario no existe </p>
    <div>
        @Html.ActionLink("Back to List", "Index")
    </div>
}
